package com.duoqin.payservice.data;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * code : 0
 * msg : 成功
 * data : DataBean
 */
public class CommoditiesResponse {

    /**
     * code : 0
     * msg : 成功
     * data : {"total":2,"commodities":[{"id":1,"name":"dq 翻译","description":"翻译  description","iconUrl":"http://www.duoqin.com/img/duoqin_logo.png","picUrl":"http://www.duoqin.com/img/duoqin_logo.png","commodityType":1,"createAt":1539250772000,"modifyAt":1539250772000},{"id":2,"name":"dq 定位","description":"定位 description","iconUrl":"http://www.duoqin.com/img/duoqin_logo.png","picUrl":"http://www.duoqin.com/img/duoqin_logo.png","commodityType":1,"createAt":1539250772000,"modifyAt":1539250772000}]}
     */

    @SerializedName("code")
    private int code;
    @SerializedName("msg")
    private String msg;
    @SerializedName("data")
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * total : 2
         * commodities : [{"id":1,"name":"dq 翻译","description":"翻译  description","iconUrl":"http://www.duoqin.com/img/duoqin_logo.png","picUrl":"http://www.duoqin.com/img/duoqin_logo.png","commodityType":1,"createAt":1539250772000,"modifyAt":1539250772000},{"id":2,"name":"dq 定位","description":"定位 description","iconUrl":"http://www.duoqin.com/img/duoqin_logo.png","picUrl":"http://www.duoqin.com/img/duoqin_logo.png","commodityType":1,"createAt":1539250772000,"modifyAt":1539250772000}]
         */

        @SerializedName("total")
        private int total;
        @SerializedName("commodities")
        private List<CommoditiesBean> commodities;

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List<CommoditiesBean> getCommodities() {
            return commodities;
        }

        public void setCommodities(List<CommoditiesBean> commodities) {
            this.commodities = commodities;
        }

        public static class CommoditiesBean {
            /**
             * id : 1
             * name : dq 翻译
             * description : 翻译  description
             * iconUrl : http://www.duoqin.com/img/duoqin_logo.png
             * picUrl : http://www.duoqin.com/img/duoqin_logo.png
             * commodityType : 1
             * createAt : 1539250772000
             * modifyAt : 1539250772000
             */

            @SerializedName("id")
            private int id;
            @SerializedName("name")
            private String name;
            @SerializedName("description")
            private String description;
            @SerializedName("iconUrl")
            private String iconUrl;
            @SerializedName("picUrl")
            private String picUrl;
            @SerializedName("commodityType")
            private int commodityType;
            @SerializedName("createAt")
            private long createAt;
            @SerializedName("modifyAt")
            private long modifyAt;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getDescription() {
                return description;
            }

            public void setDescription(String description) {
                this.description = description;
            }

            public String getIconUrl() {
                return iconUrl;
            }

            public void setIconUrl(String iconUrl) {
                this.iconUrl = iconUrl;
            }

            public String getPicUrl() {
                return picUrl;
            }

            public void setPicUrl(String picUrl) {
                this.picUrl = picUrl;
            }

            public int getCommodityType() {
                return commodityType;
            }

            public void setCommodityType(int commodityType) {
                this.commodityType = commodityType;
            }

            public long getCreateAt() {
                return createAt;
            }

            public void setCreateAt(long createAt) {
                this.createAt = createAt;
            }

            public long getModifyAt() {
                return modifyAt;
            }

            public void setModifyAt(long modifyAt) {
                this.modifyAt = modifyAt;
            }
        }
    }
}
